package net.wanho.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Author：汤小洋
 * Date：2023-08-29 10:25
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    @Excel(name = "用户id", orderNum = "0", width = 20)
    private Integer id;

    @Excel(name = "用户名", orderNum = "1", width = 20)
    private String username;

    private String password;

    @Excel(name = "年龄", orderNum = "2", width = 10)
    private Integer age;

    @Excel(name = "邮箱", orderNum = "3", width = 30)
    private String email;

    @Excel(name = "创建时间", orderNum = "4", format = "yyyy-MM-dd HH:mm:ss", width = 30)
    private LocalDateTime createTime;

    @Excel(name = "是否删除", orderNum = "5", replace = {"删除_1", "正常_0"}, width = 20)
    private Integer isDeleted;

}
